package org.jeecg.modules.bobo.desform.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 表单数据
 * @Author: jeecg-boot
 * @Date:   2021-04-09
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@TableName(value = "lb_desform_data",autoResultMap = true)
@ApiModel(value="lb_desform_data对象", description="表单数据")
public class LbDesformData implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**表单id*/
    @ApiModelProperty(value = "表单id")
    private java.lang.String desformId;
	/**表单编码*/
	@Excel(name = "表单编码", width = 15)
    @ApiModelProperty(value = "表单编码")
    private java.lang.String desformCode;
	/**表单名称*/
	@Excel(name = "表单名称", width = 15)
    @ApiModelProperty(value = "表单名称")
    private java.lang.String desformName;
	/**表单数据json*/
	@Excel(name = "表单数据json", width = 15)
    @ApiModelProperty(value = "表单数据json")
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject desformDataJson;
	/**onlineFormCode*/
	@Excel(name = "onlineFormCode", width = 15)
    @ApiModelProperty(value = "onlineFormCode")
    private java.lang.String onlineFormCode;
	/**onlineFormDataId*/
	@Excel(name = "onlineFormDataId", width = 15)
    @ApiModelProperty(value = "onlineFormDataId")
    private java.lang.String onlineFormDataId;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
}
